package com.example.myapplication.adapter.viewPagerAdapter;

import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;

import com.example.myapplication.Fragment.RecommentSongFragment;

import java.util.ArrayList;
import java.util.List;

public class RecommendSongAdapter extends FragmentPagerAdapter {
    private List<Fragment> fragmentList = new ArrayList<>();

    public RecommendSongAdapter(@NonNull FragmentManager fm) {
        super(fm);
    }

    public RecommendSongAdapter(@NonNull FragmentManager fm, List<Fragment> fragmentList) {
        super(fm);
        this.fragmentList = fragmentList;
    }

    @NonNull
    @Override
    public Fragment getItem(int position) {
        return new RecommentSongFragment();
    }

    @Override
    public int getCount() {
        return 3;
    }

}
